/*
 * BTR.java
 * classes : com.qim.imsdk.utilites.BTR
 * @author xuwei
 * V 1.0.0
 * Created at 2015��9��23�� ����6:47:11
 */
package com.langsheng.lsintell.utils;

import android.content.Context;

public class LSR {
    public static int getStringRes(Context context, String name) {
        return context.getResources().getIdentifier(name, "string", context.getPackageName());
    }

    public static int getColorRes(Context context, String name) {
        return context.getResources().getIdentifier(name, "color", context.getPackageName());
    }

    public static int getStyleRes(Context context, String name) {
        return context.getResources().getIdentifier(name, "style", context.getPackageName());
    }

    public static int getLayoutRes(Context context, String name) {
        return context.getResources().getIdentifier(name, "layout", context.getPackageName());
    }

    public static int getIDRes(Context context, String name) {
        return context.getResources().getIdentifier(name, "id", context.getPackageName());
    }

    public static int getDrawableRes(Context context, String name) {
        return context.getResources().getIdentifier(name, "drawable", context.getPackageName());
    }

    public static int getArrayRes(Context context, String name) {
        return context.getResources().getIdentifier(name, "array", context.getPackageName());
    }

    public static int getAnimRes(Context context, String name) {
        return context.getResources().getIdentifier(name, "anim", context.getPackageName());
    }

}
